package com.dingding.special.user.login.dto;

import java.math.BigDecimal;
import java.util.Date;

import com.dingding.common.core.config.ImageUploadConfig;
import com.dingding.common.core.util.DateFormatUtil;

/**
 * 
 * @ClassName: SpecialUserLoginDTO 
 * @Description: 专车用户登录服务端响应数据封装
 * @author CHEHAUNBO 
 * @date 2016年8月21日 下午2:34:02
 * @since V2.4.0
 * 
 */
public class ResSpecialUserLoginDTO {

	private String accesstoken = "a2b4c32f-0368-4a2a-af04-c7fe68a3d765";// 用户登录后，服务端授权KEY

	private String rongCloudToken;// 融云TOKEN

	private String aliasId;// 极光推送别名

	private String userId;// 用户ID

	private String telPhone;// 手机号

	private String nickName;// 用户名称

	private Integer sex;// 性别 0:未设置 1 男 2 女

	private String userAvatar;// 用户头像

	private String userTabloidAvatar;// 用户缩略头像

	private BigDecimal userLevel;// 用户星级

	private int userRole;// 用户角色 1：待认证专车车主 2：专车车主 3:出租车车主

	private Integer suvStatus = 0;// 认证状态 0:未认证 1：审核中2：审核通过3：审核未通过 4：重新认证 5：审核资料过期

	/**====用户指派设置 start======*/
	private int appointOrderType; // 指派类型 1:实时 2:预约 3:全部

	private BigDecimal distanceFilter; // 距离筛选 1：1.5KM 2：3KM 3：5KM

	private Date startTime; // 开始时间

	private Date endTime;// 结束时间

	private int voiceAnnouncements;// 预约播报 1：开启 2：关闭

	/**====用户指派设置 end======*/

	public String getAccesstoken() {
		return accesstoken;
	}

	public void setAccesstoken(String accesstoken) {
		this.accesstoken = accesstoken;
	}

	public String getAliasId() {
		return aliasId;
	}

	public void setAliasId(String aliasId) {
		this.aliasId = aliasId;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getRongCloudToken() {
		return rongCloudToken;
	}

	public void setRongCloudToken(String rongCloudToken) {
		this.rongCloudToken = rongCloudToken;
	}

	public Integer getSex() {
		return sex;
	}

	public void setSex(Integer sex) {
		this.sex = sex;
	}

	public Integer getSuvStatus() {
		return suvStatus;
	}

	public void setSuvStatus(Integer suvStatus) {
		this.suvStatus = suvStatus;
	}

	public int getAppointOrderType() {
		return appointOrderType;
	}

	public void setAppointOrderType(int appointOrderType) {
		this.appointOrderType = appointOrderType;
	}

	public void setDistanceFilter(Double distanceFilter) {

		if (distanceFilter == 1.5) {
			this.distanceFilter = new BigDecimal(1);
		} else if (distanceFilter == 3) {
			this.distanceFilter = new BigDecimal(2);
		} else {
			this.distanceFilter = new BigDecimal(3);
		}

	}

	public String getStartTime() {
		return DateFormatUtil.yyyy_MM_dd_HHmm_CN(startTime);
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public String getEndTime() {
		return DateFormatUtil.yyyy_MM_dd_HHmm_CN(endTime);
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public int getVoiceAnnouncements() {
		return voiceAnnouncements;
	}

	public void setVoiceAnnouncements(int voiceAnnouncements) {
		this.voiceAnnouncements = voiceAnnouncements;
	}

	public String getUserAvatar() {
		return userAvatar;
	}

	public void setUserAvatar(String userAvatar) {

		this.userAvatar = ImageUploadConfig.getIMAGE_ACCESS_PATH() + userAvatar;
	}

	public int getUserRole() {
		return userRole;
	}

	public void setUserRole(int userRole) {
		this.userRole = userRole;
	}

	public String getUserTabloidAvatar() {
		return userTabloidAvatar;
	}

	public void setUserTabloidAvatar(String userTabloidAvatar) {
		this.userTabloidAvatar = ImageUploadConfig.getIMAGE_ACCESS_PATH() + userTabloidAvatar;
	}

	public String getTelPhone() {
		return telPhone;
	}

	public void setTelPhone(String telPhone) {
		this.telPhone = telPhone;
	}

	public BigDecimal getUserLevel() {
		return userLevel;
	}

	public void setUserLevel(BigDecimal userLevel) {
		this.userLevel = userLevel;
	}

	public BigDecimal getDistanceFilter() {
		return distanceFilter;
	}

	public void setDistanceFilter(BigDecimal distanceFilter) {
		this.distanceFilter = distanceFilter;
	}

}
